import request from '../utils/request'

// 列表
export function getBannerList () {
  return request({
    url: '/banner/list',
    method: 'GET'
  })
}

// 删除
export function deleteBannerItem (data: { bannerid: string }) {
  return request({
    url: '/banner/delete',
    method: 'GET',
    data
  })
}

// 添加
export function addBannerItem (data: { link: string; alt: string; img: string }) {
  return request({
    url: '/banner/add',
    method: 'POST',
    data
  })
}
